#!/usr/bin/env ruby

$LOAD_PATH << File.expand_path("../../lib")

require 'flgrcore'
require 'flgrarith'


imin = Flgrcore::flgr2d_load_pgm('../../apps/images/gray/lena.pgm','input')
imin2 = Flgrcore::FLGR_Data2D.new(imin.sizeX,imin.sizeY,'fgUINT8','input2')

Flgrarith::flgr2d_arith_addsat(imin2,imin,50)

Flgrcore::flgr2d_save_pgm(imin2)

